<BOUCLE_one_product(ARTICLES spip_ecatalogue_products){id_article=#ENV{id_article}}{statut IN publie,prepa}>
<div class='formulaire_spip'>
    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
    
    <form method='post' action='#ENV{action}' id="ecatalogue_product_equipment_form">
    <input type="hidden" value="#ID_EQUIPMENT" name="id_equipment" />
    <input type="hidden" value="" name="id_article_delete" id="id_article_delete" />
        <div>
			#ACTION_FORMULAIRE{#ENV{action}}			
			<ul>    
                <li>
                    <label><:ecatalogue:add_to_equipment:></label>
                    <select name="id_article_add">
                        <option value="0"><:ecatalogue:not_selected:></option>
                    [(#REM) В комплектацию может быть добавлен только товар из той же рубрики! ]                        
                        <BOUCLE_products_equip_add(ARTICLES spip_ecatalogue_products){id_rubrique}{par titre}
                            {id_equipment!=#ID_EQUIPMENT}{id_article!=#ID_ARTICLE}{statut IN publie,prepa}>  
                            [(#REM) {statut IN publie,prepa} added here because {tout} doesn't work ]                                                                              
                        <option value="#ID_ARTICLE" >                            
                            [(#TITRE|supprimer_numero)] 
                        </option>
                        </BOUCLE_products_equip_add>   
                    </select>
                </li>
			</ul>
			
			<p class='boutons'>
				<input type='submit' name='save_submit' value='<:ecatalogue:add:>' />
			</p>
            
            <B_equipments>
<div class="liste-elements equipments">
<table class='spip liste'>
<caption><strong class="caption"><:ecatalogue:equipments_list:></strong></caption>
	<thead>
		<tr class='first_row'>
			<th class='id_article'>ID</th>
            <th class='statut'><:ecatalogue:status:></th>
            <th class='sku'><:ecatalogue:sku:></th>
			<th class='titre'><:ecatalogue:product_name:></th>
            <th class='logo_article'></th>			
			<th class='price'><:ecatalogue:price:></th>
            <th>&nbsp;</th>			
		</tr>
	</thead>
	<tbody>
	<BOUCLE_equipments(ARTICLES spip_ecatalogue_products){par titre}
        {id_equipment=#ID_EQUIPMENT}{id_article!=#ID_ARTICLE}{statut IN publie,prepa}>        
		<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
			<td class='id_article'>#ID_ARTICLE</td>
            <td class='statut'>[(#ID_ARTICLE|puce_changement_statut{#STATUT,#ID_RUBRIQUE,article})]</td>
            <td class='sku'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#SKU</a></td>
			<td class='titre'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#TITRE</a></td>
            <td class='logo_article'>[(#LOGO_ARTICLE|image_reduire{30})]</td>			
			<td class='prix'>#PRICE</td>
            <td class='delete'><a href="javascript:;" class="delete_link" data-id_article="#ID_ARTICLE"><:ecatalogue:delete:></a></td>			
		</tr>        
	</BOUCLE_equipments>
	</tbody>
</table>
</div>
</B_equipments>
<div class="liste-elements equipments"><strong class="caption"><:ecatalogue:no_equipments:></strong></div>
<//B_equipments>
            			

		</div>
    </form>
</div>
<script src="#CHEMIN{formulaires/ecatalogue_product_equipment/ecatalogue_product_equipment_js.php}"></script>
</BOUCLE_one_product>
    <:ecatalogue:no_such_product:>
<//B_one_product>